
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!-- Paging starts -->
<s:a href="image!select?paging.currentPage=1"> |< </s:a>
<s:if test="%{paging.currentPage>1}"><s:a href="image!select?paging.currentPage=%{paging.currentPage-1}"> << </s:a></s:if>
<s:else><<</s:else>
&nbsp;&nbsp;<s:property value="paging.currentPage" />/<s:property value="paging.totalPage" />&nbsp;&nbsp;
<s:if test="%{paging.currentPage<paging.totalPage}"><s:a href="image!select?paging.currentPage=%{paging.currentPage+1}">>></s:a></s:if>
<s:else>>></s:else>
<s:a href="image!select?paging.currentPage=%{paging.totalPage}"> >| </s:a>
<br>
<!-- Paging ends -->


	<s:iterator value="images" status="stat">
		<div style="border: 1px solid red;">
				<input id="checkbox<s:property value="id" />" type="checkbox" onchange="prepare('<s:property value="id" />','<s:property value="data" />')">
				<img src="<s:property value="src" />"  class="thumb"/>	<br>
				<s:property value="data" /><br>
		</div>			
	</s:iterator>

<!-- Paging starts -->
<s:a href="image!select?paging.currentPage=1"> |< </s:a>
<s:if test="%{paging.currentPage>1}"><s:a href="image!select?paging.currentPage=%{paging.currentPage-1}"> << </s:a></s:if>
<s:else><<</s:else>
&nbsp;&nbsp;<s:property value="paging.currentPage" />/<s:property value="paging.totalPage" />&nbsp;&nbsp;
<s:if test="%{paging.currentPage<paging.totalPage}"><s:a href="image!select?paging.currentPage=%{paging.currentPage+1}">>></s:a></s:if>
<s:else>>></s:else>
<s:a href="image!select?paging.currentPage=%{paging.totalPage}"> >| </s:a>
<!-- Paging ends -->